var Click2TabHistoryPanel = 
{
   init : function ()
   {
      window.removeEventListener('load', function () { Click2TabHistoryPanel.init(); }, false);

      if (typeof(PlacesController) == "function") {
         TMP_Places.init();
         return;
      }

      eval("openURL = " + openURL.toString().replace(
         'openURLIn(whereToOpenLink(aEvent));',
         'openURLIn(whereToOpenLinkTabmix(aEvent, prefStringTMHistory));'
      ));

      eval("buildContextMenu ="+buildContextMenu.toString()
         .replace('openItemInNewTab.hidden = false;',
         '$& TMP_updateContextMenu(openItem, openItemInNewWindow, openItemInNewTab, prefStringTMHistory);'
      ));

   }

}
